From 05fcdea6688a8b4b702a8eacee1004250a8b0aa4 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 12 Dec 2007 10:08:54 +0000 Subject: [PATCH] ia64, xend: Close nvram file when rebooting HVM domain Signed-off-by: Masaki Kanno --- tools/python/xen/xend/XendDomainInfo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 4558a9cec6..f09fd7d94f 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1880,8 +1880,6 @@ class XendDomainInfo: self._cleanupVm() if self.dompath is not None: - if self.domid is not None: - xc.domain_destroy_hook(self.domid) self.destroyDomain() self._cleanup_phantom_devs(paths) @@ -1899,6 +1897,7 @@ class XendDomainInfo: try: if self.domid is not None: + xc.domain_destroy_hook(self.domid) xc.domain_destroy(self.domid) for state in DOM_STATES_OLD: self.info[state] = 0 -- 2.30.2